#include <vld.h>
#include <stdio.h>
#include <fstream>

using std::fstream;
using std::endl;
using std::ios;

int main()
{
	_CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF);
	
	fstream in("in.txt", ios::in);
	fstream out("out.txt", ios::out);

	int n = 0;
	in >> n;

	if (n == 0)
	{		
		return 0;
	}

	out << "0 0" << "\n";

	if (n == 1)
	{		
		return 0;
	}

	n--;

	int i = 0;
	int k = 0;
	while (i < n)
	{
		k = i / 4 + 1;

		if (i % 4 == 0)
		{
			out << k << " " << -(k - 1) << "\n";
		}
		
		if (i % 4 == 1)
		{
			out << k << " " << k << "\n";
		}

		if (i % 4 == 2)
		{
			out << -k << " " << k << "\n";
		}

		if (i % 4 == 3)
		{
			out << -k << " " << -k << "\n";
		}

		i++;
	}

	in.close();
	out.close();

	return 0;
}
